package com.imooc.town.service;

import com.imooc.town.dto.OrderDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by 10077 on 2018/3/21.
 * desc:
 */
public interface OrderService {

    /**
     * 创建订单
     */
    OrderDTO createOrder(OrderDTO orderDTO);
    /**
     * 查询单个订单
     */
    OrderDTO findOne(String orderId);
    /**
     * 查询所有订单
     */
    Page<OrderDTO> findAllOrder(String openid, Pageable pageable);
    /**
     * 取消订单
     */
    OrderDTO cancle(OrderDTO orderDTO);
    /**
     * 完结订单
     */
    OrderDTO finish(OrderDTO orderDTO);
    /**
     * 支付订单
     */

    OrderDTO paid(OrderDTO orderDTO);

    Page<OrderDTO> list(Pageable pageable);
}
